<?php session_start(); ?>
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>注销成功</title>
</head> 
<body> 
<?php
if(isset($_SESSION['username']))
{
unset($_SESSION['username']);
echo '<h2 align="center">注销成功</h2>';
}
session_destroy();
echo '<br>';
echo '<br>';
echo '<p align="center">
<script type="text/javascript"> 
setTimeout("myfun()",1000);
function myfun()
{
window.location.href ="index.php";
}
</script>';
 
?>
 </body>
</html>